/**
 * Project Name:main-admin
 * File Name:LoginOutHandler.java
 * Package Name:com.config.Seurity.filter
 * Date:2019年10月26日上午7:15:01
*/

package com.m.security.filter;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.security.core.Authentication;
import org.springframework.security.web.authentication.logout.LogoutSuccessHandler;

import com.m.utils.ResponseFormatter;







/**
 * ClassName:LoginOutHandler <br/>
 * Date: 2019年10月26日 上午7:15:01 <br/>
 * 
 * @author monxz
 * @version
 * 
 */

public class LoginOutSecuessHandler implements LogoutSuccessHandler {
	
	

	@Override
	public void onLogoutSuccess(HttpServletRequest request, HttpServletResponse response, Authentication auth)
			throws IOException, ServletException {
		ResponseFormatter.initResponse(response, "推出成功！");
	}

}
